<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 autoresponders_edit.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
include $root_path.'common.php';
$page_title = $lang['autoresponder_edit'];
include $root_path.'page_header.php';





$template->set_filenames(array(
	'body' => $root_path.$template_path.'mail/autoresponders_edit.tpl')
);


// Reading in variables
$s_email = <<<EOFpacman
<cpanel sprint="FORM{'email'},@,0">
EOFpacman;

$s_domains = <<<EOFpacman
<cpanel Email="printdomainoptions($FORM{'email'})">
EOFpacman;

$s_from = <<<EOFpacman
<cpanel Email="getarsfrom(FORM{'email'})">
EOFpacman;

$s_subject = <<<EOFpacman
<cpanel Email="getarssubject(FORM{'email'})">
EOFpacman;

$s_character_format = <<<EOFpacman
<cpanel Email="getarscharset($FORM{'email'})">
EOFpacman;

$s_html_format = <<<EOFpacman
<cpanel Email="getarshtml(FORM{'email'})">
EOFpacman;

$s_body = <<<EOFpacman
<cpanel Email="getarsbody(FORM{'email'})">
EOFpacman;

// And outputting it into template vars.
$template->assign_vars(array(
	'S_ACTION' => "autoresponders_edit_done.php",
	'S_EMAIL' => $s_email,
	'S_DOMAINS' => $s_domains,
	'S_FROM' => $s_from,
	'S_SUBJECT' => $s_subject,
	'S_CHARACTER_FORMAT' => $s_character_format,
	'S_HTML_FORMAT' => $s_html_fromat,
	'S_BODY' => $s_body,
	
	'L_EDIT_AUTORESPONDER' => $lang['autoresponder_edit'],
	'L_AUTORESPONDERS' => $lang['autoresponders'],
	'L_AUTORESPONDER_EMAIL' => $lang['autoresponder_email'],
	'L_AUTORESPONDER_FROM' => $lang['autoresponder_from'],
	'L_SUBJECT' => $lang['subject'],
	'L_CHARACTER_SET' => $lang['character_set'],
	'L_HTML_MESSAGE' => $lang['html_message'],
	'L_BODY' => $lang['body'],
	'L_UPDATE_AUTORESPONDER' => $lang['update_autoresponder'],
));

//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';


?>